# coding: utf8


response.menu_plugin_font_orbitron_black= [
    (T('Black'), False, URL('plugin_font_orbitron', 'orbitronblack'),
        [
        ]
   )]

response.menu_plugin_font_orbitron_bold= [
    (T('Bold'), False, URL('plugin_font_orbitron', 'orbitronbold'),

        [
        ]
   )]

response.menu_plugin_font_orbitron_light= [
    (T('Light'), False, URL('plugin_font_orbitron', 'orbitronlight'),
        [
        ]
   )]

response.menu_plugin_font_orbitron_medium= [
    (T('Medium'), False, URL('plugin_font_orbitron', 'orbitronmedium'),
        [
        ]
   )]
   
response.menu+=response.menu_plugin_font_orbitron_black
response.menu+=response.menu_plugin_font_orbitron_bold
response.menu+=response.menu_plugin_font_orbitron_light
response.menu+=response.menu_plugin_font_orbitron_medium

# coding: utf8
# initialization.py
import os 
initialization_file_path = os.path.join(request.folder,'models','000_uc_initialization.py')

# create an initialization file if we do not have one
if not 'initialization_file_created' in globals():
    if not os.path.exists(initialization_file_path):
        our_file = open(initialization_file_path,"w")
        our_text = 'initialization_file_created = True\n'
        our_file.writelines(our_text)
        our_file.close()
else:
    print('models/plugin_font_orbitron/initialization.py found')
    print('initialization_file_created globals')


if not 'group_font_admin_created' in globals():
    if not db(db.auth_group.role=='font_admin').select(): 
        db.auth_group.insert(role='font_admin',description='a user who can administer fonts')
        our_file = open(initialization_file_path,"a")
        our_text = 'group_font_admin_created = True\n'
        our_file.write(our_text)
        our_file.close()
else:
    print('models/plugin_font_orbitron/initialization.py found')
    print('group_font_admin_created globals')
